import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
  name: 'gPA'
})
export class GPAPipe implements PipeTransform {

  // transform(score: number): number {
  //   return score/10-5;
  // }
  transform(gradepoint: number): number {
    return Number(gradepoint.toFixed(1));
  }
}
